// Copyright (c) 2007 Robin Boerdijk. All rights reserved.
//
// This software is licensed under the terms of the Microsoft Reciprocal License as described 
// in the file LICENSE.txt, which you should have received as part of this distribution. The 
// license terms are also available at http://www.opensource.org/licenses/ms-rl.html.

#include "wtkpc.h"

#include "wtk/Control.h"
#include "wtk/DialogWindow.h"

#include <cassert>

namespace wtk
{
	Control::Control(const wchar_t *windowClassName, DialogWindow *dialogWindow)
		: Window(windowClassName, dialogWindow)
	{
		this->style |= WS_CHILD | WS_VISIBLE;
		
		dialogWindow->controls.push_back(this);
	}

	void Control::Create()
	{
		Window::Create(NULL, NULL);
	}
}
